package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap40 extends OSMap
	{
		public function OSMap40()
		{
			super();

			var ground:OSGround = new OSGround(0, 780, 20, 20, 0, false);
			ground.setNoErosionLeft([0]);
			ground.erode();
			addBackground(ground);

			ground = new OSGround(70, 750, 200, 20, 0, true);
			ground.setBorders(true, true);
			addBackground(ground);

			ground = new OSGround(80, 760, 20, 20, 0, false);
			ground.setNoErosionDown([0]);
			ground.erode();
			addBackground(ground);

			ground = new OSGround(240, 760, 20, 20, 0, false);
			ground.setNoErosionDown([0]);
			ground.erode();
			addBackground(ground);

			ground = new OSGround(0, 780, 280, 300, 0, false);
			ground.setNoErosionUp([4, 12]);
			ground.setNoErosionDown([196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209]);
			ground.setNoErosionLeft([0, 14, 28, 42, 56, 70, 84, 98, 112, 126, 140, 154, 168, 182, 196]);
			ground.setNoErosionRight([27, 209]);
			ground.erode();
			add(ground);

			add(new OSBridge(280, 800, 26, 5, true));

			ground = new OSGround(280, 1060, 520, 20, 0, false);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([25]);
			ground.erode();
			add(ground);

			ground = new OSGround(800, 780, 160, 300, 0, false);
			ground.setNoErosionDown([112, 113, 114, 115, 116, 117, 118, 119]);
			ground.setNoErosionLeft([8, 112]);
			ground.setNoErosionRight([7, 15, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 111, 119]);
			ground.erode();
			add(ground);

		}
	}
}
